package agrawala;

public class MessageAgrawala implements java.io.Serializable {

	private static final long serialVersionUID = 8223394217301362731L;
	public int from;		// identifiant du processus emetteur
	public int to;			// identifiant du processus recepteur
	public Requete requete;		// type de requete du message
	public int var;			// variable pour transmettre les informations
	
	/**
	  * Construteur de classe
	  *
	  **/
	public MessageAgrawala(int from, int to, Requete requete, int var){
		this.from = from;
		this.to = to;
		this.requete = requete;
		this.var = var;
	}
	
	@Override
	public String toString(){
		return "from : "+ from + " | to : "+to+" | msg : "+requete+", var="+ var;
	}
}
